﻿/*************************************************************************************
 * 文 件 名:   HK_WebsiteCollection
 * 
 * 描    述:   Unity开发相关站点的集合
 * 
 * 版    本：  V1.0
 * 创 建 者：  京产肠饭
 * 创建时间：  2023/5/2
 * 链   接：  https://gitee.com/JingChanChangFan/hk_-unity-tools
*************************************************************************************/

using UnityEditor;
using UnityEngine;

namespace HKTools
{
    public static class HK_WebsiteCollection
    {
        const int WebsitesPriority = 200;

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/HKUnityTools Gitee 站点", priority = WebsitesPriority)]
        static void OpenHKToolsGitee()
        {
            Application.OpenURL("https://gitee.com/JingChanChangFan/hk_-unity-tools");
        }

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/Unity Documentation 中文文档", priority = WebsitesPriority)]
        static void OpenUnityDocumentation_CN()
        {
            Application.OpenURL("https://docs.unity.cn/cn/2022.1/Manual/UnityManual.html");
        }

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/Unity Asset Store 资源商店", priority = WebsitesPriority)]
        static void OpenAssetStore()
        {
            Application.OpenURL("https://assetstore.unity.com/");
        }

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/Unity 中国官网", priority = WebsitesPriority)]
        static void OpenUnityOfficialWebsite_CN()
        {
            Application.OpenURL("https://unity.cn/");
        }

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/Unity 国际官网", priority = WebsitesPriority)]
        static void OpenUnityOfficialWebsite_EN()
        {
            Application.OpenURL("https://unity.com/");
        }

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/Unity 中文课堂", priority = WebsitesPriority)]
        static void OpenUnityOfficialClassroom_CN()
        {
            Application.OpenURL("https://learn.u3d.cn/");
        }

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/Photoshop(在线平替版)", priority = WebsitesPriority)]
        static void OpenOnlinePs()
        {
            Application.OpenURL("https://www.photopea.com/");
        }

        [MenuItem("HKTools/WebsiteCollection(常用网站集合)/iconfont 阿里UI图库", priority = WebsitesPriority)]
        static void OpenIconfont()
        {
            Application.OpenURL("https://www.iconfont.cn/");
        }
    }
}